/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2024-07-25 15:13:53
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2024-08-21 11:14:12
 * @FilePath: /vue3-uniapp/src/api/app.ts
 */
import { un } from '@uni-helper/uni-network';

export const readImageAsync = (id: number) => {
    return un
        .download<{
            filePath?: string;
            tempFilePath?: string;
        }>({
            url: `/mini/api/file/show/image/${id}`
        })
        .then((res) => {
            return res.data?.tempFilePath;
        });
};
